// 获取地址栏参数
export default function (name) {
  const query = window.location.search.substring(1);
  const list = query.split("&");
  for (const value of list) {
    const pair = value.split("=");
    if (pair[0] == name) {
      return pair[1];
    }
  }
  return null;
}
